<?php
    /**
    *file-level documentation
    *@author El-Hindi, Feil, Ziegler <goatymail@googlemail.com>
    *27 May 2012
    *@copyright Copyrigth (c) 2012, Tuncay Bakan
    *@package root
    *
    */
    /**
    *
    */

    define('SERVER_ROOT', '/opt/lampp/htdocs/workspace/com.bakansaz_1.0/');
    define('WEBSITE_ROOT', SERVER_ROOT . 'website/');
    define('CMS_ROOT', SERVER_ROOT . 'cms/');
    define('HTTP_ROOT', 'http://localhost/workspace/com.bakansaz_1.0/website');
    
    define('DBHOST','localhost');
    define('DBNAME','goaty');
    define('DBUSER','goaty');
    define('DBPASSWORD','ABXIFOzl');
    
    $iCMS_USERID = 3;
    
    mysql_connect(DBHOST,DBUSER,DBPASSWORD) or die ('Keine Verbindng');
    mysql_select_db(DBNAME) or die  ('Keine Verbindng');
    $oResult =mysql_query("SELECT email FROM bs_cms_user WHERE id= '$iCMS_USERID'");
    $aEmail = mysql_fetch_row($oResult);
    define('DEFAULT_EMAIL', $aEmail[0]);
    mysql_close();
    
    define('DEFAULT_LANGUAGE' , 1);
    define('DEFAULT_STARTPAGE', 2);
    
    define('CSS','main');
    define('LAYOUT', 'index');
    
    define('MOBILE_LAYOUT', 'mobileindex');
    define('MOBILE_CSS', 'mobile');
    //define('ISMOBILE', 0);
    $ISMOBILE = 0;
    $NAVIGATIONTEMP = 'navigation';
    
    define('CMS_CSS', 'cms_main');
    define('CMS_LAYOUT', 'cms_index');
    
    define('CMS_PREFIX','cms_');
    define('CMS_DEFAULT_CONTROLLER', 'pageStructure');
    define('CMS_DEFAULT_VIEW', 'pageStructure');
    define('CMS_DEFAULT_MODEL', 'pageStructure');
    
    //./template/css/main.css
    define('DEFAULT_CONTROLLER', 'contentPage');
    define('DEFAULT_VIEW', 'contentPage');
    define('DEFAULT_MODEL', 'contentPage');
  
    define('DEFAULT_PRODUCT_IMAGE_ID', 1);
    define('DEFAULT_PRODUCT_IMAGE', 'default.gif');
    define('DELETE_IMAGE', '../image/remove.png');
    define('IMAGE_UPLOAD_PATH', '/opt/lampp/htdocs/workspace/com.bakansaz_1.0/image/');
    define('THUMBNAIL_PATH', '/opt/lampp/htdocs/workspace/com.bakansaz_1.0/image/thumbs/');
    define('THUMB_MAX_X',100);
    define('THUMB_MAX_Y',80);
?>